public class Mul {
    public static int mul(int n) {

      if(n==1){
          return 1;
      }

       int tmp=n*mul(n-1);
      return tmp;
    }

    public static void main(String[] args) {
        System.out.println(mul(5));
    }
}
